$(document).ready(function() {

    $('.slider2').bxSlider({

        slideWidth: 300,

        auto: true,

        autoControls: true,

        minSlides: 2,

        maxSlides: 4,

        slideMargin: 10

    });

});